<template>
  <div>
    <div class="fo">
      <div class="deatil">
        <div class="head"><img src="./images/9.头像.jpg" alt="" /></div>
        <div class="head-title">
          <p>断背山上危基四伏</p>
          <div class="login">
            <a href="javascript:void">个人中心</a>|
            <a href="javascript:void">退出登陆</a>
          </div>
        </div>
        <div class="member">
          <div class="cnm">
            <span class="title">开通会员,立享特权</span>
            <div class="btn">
              <span>立即开通</span>
            </div>
          </div>
          <img src="./images/8.会员背景牌.png" alt="" />
        </div>
      </div>
    </div>
    <div class="page-container">
      <div class="group">
        <div class="group-title">-会员特权-</div>
        <div class="control">
          <div class="f1">
            <span class="iconfont ios icon-yinle"></span>
            <div class="name">VIP曲库</div>
            <div class="intro">独享更多VIP专属曲库内容(不含数字专辑)</div>
          </div>
          <div class="f1">
            <span class="iconfont ios icon-cunchu"></span>
            <div class="name">无损音质</div>
            <div class="intro">为VIP会员提供无损音质服务,听到细节</div>
          </div>
          <div class="f1">
            <span class="iconfont ios icon-huiyuan"></span>
            <div class="name">身份特权</div>
            <div class="intro">VIP尊贵特权,优先享受新功能特权</div>
          </div>
        </div>
      </div>
    </div>

    <div class="page-container">
      <div class="group">
        <div class="group-title">-会员歌单-</div>
        <div class="song">
          <ul>
            <li v-for="item in singerdata" :key="item.id">
              <router-link to="/singer">
              <div class="demo iconfont icon-bofang" ></div>
              </router-link>
              <router-link to="/singer"><img :src="item.picUrl"></router-link>
              <div class="brief">古风|你是我的执念</div>
            </li>
            <!-- <li>
              <i class="iconfont icon-bofang"></i>
              <img src="./images/1.jpg" alt="" />
              <div class="brief">古风|你是我的执念</div>
            </li>
            <li>
              <i class="iconfont icon-bofang"></i>
              <img src="./images/1.jpg" alt="" />
              <div class="brief">古风|你是我的执念</div>
            </li>
            <li>
              <i class="iconfont icon-bofang"></i>
              <img src="./images/1.jpg" alt="" />
              <div class="brief">古风|你是我的执念</div>
            </li>
            <li>
              <i class="iconfont icon-bofang"></i>
              <img src="./images/1.jpg" alt="" />
              <div class="brief">古风|你是我的执念</div>
            </li>
            <li>
              <i class="iconfont icon-bofang"></i>
              <img src="./images/1.jpg" alt="" />
              <div class="brief">古风|你是我的执念</div>
            </li>
            <li>
              <i class="iconfont icon-bofang"></i>
              <img src="./images/1.jpg" alt="" />
              <div class="brief">古风|你是我的执念</div>
            </li>
            <li>
              <i class="iconfont icon-bofang"></i>
              <img src="./images/1.jpg" alt="" />
              <div class="brief">古风|你是我的执念</div>
            </li>
            <li>
              <i class="iconfont icon-bofang"></i>
              <img src="./images/1.jpg" alt="" />
              <div class="brief">古风|你是我的执念</div>
            </li>
            <li>
              <i class="iconfont icon-bofang"></i>
              <img src="./images/1.jpg" alt="" />
              <div class="brief">古风|你是我的执念</div>
            </li> -->
          </ul>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
// 引入vuex辅助函数
// import {mapState} from 'vuex'
// export default {
//   name: 'Vip',
//   // 获取歌单图片数据
//   computed:{
//     ...mapState({
//       artist:(state)=>state.vip.artist
//     }),
//   },
// }
import request from '@/utils/request'
export default {
	name: 'Vip',
	data() {
		return {
			singerdata:[], // 歌手头像
			singername:[], //歌名
		}
	},
	async mounted(){
		const limit = 10
		const result = await request.get(`/toplist/artist/${limit}/${-1}`)
		console.log(result);
		this.singerdata = result.list.artists.splice(10,10)
  }
}
</script>

<style lang="less" rel="stylesheet/less">
.fo {
  background-color: #333;
  margin: 0 auto;
  .deatil {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-top: 50px;
    .head {
      width: 120px;
      height: 120px;
      margin-top: 65px;

      img {
        border-radius: 50%;
      }
    }
    .head-title {
      margin-left: -120px;
      margin-top: 85px;
      p {
        font-size: 24px;
        color: #fff;
      }
      .login {
        font-size: 16px;
        color: #fff;
        margin-top: 15px;
        a {
          text-decoration: none;
          color: #fff;
          padding: 0 10px 0px 0px;
        }
      }
    }
    .member {
      width: 680px;
      height: 250px;
      position: relative;
      .cnm {
        position: absolute;
        margin-top: 65px;
        padding: 0px 60px;
        .title {
          font-size: 36px;
          color: #303133;
        }
      }
      .btn {
        width: 138px;
        height: 50px;
        background-color: #303133;
        border-radius: 50px;
        margin: 25px 0 0;
        font-size: 14px;
        text-align: center;
        line-height: 50px;
        color: #fff;
      }
    }
  }
}
.page-container {
  margin: 0 auto;
  .group {
    width: 1200px;
    margin: 0 auto;
    .group-title {
      margin: 100px 0 40px;
      text-align: center;
      font-size: 28px;
    }

    .control {
      display: flex;
      justify-content: space-between;

      .f1 {
        width: 390px;
        background-color: #f8f8f8;
        text-align: center;
        padding: 60px 0;
        .iconfont {
          border: 2px solid #b39c78;
          border-radius: 50%;
          font-size: 40px;
          padding: 20px;
          color: #b39c78;
        }
        .name {
          font-size: 20px;
          color: #303133;
          margin: 20px 0px 8px;
        }
        .intro {
          font-size: 14px;
          color: #909399;
        }
      }
    }
  }
  .song {
    width: 1200px;
    ul {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      li{
         width: 224px;
        height: 224px;
        margin: 25px 0px;
        overflow: hidden;
        position: relative;
        .demo{
          font-size: 50px;
          position: absolute;
          color: #fff;
          z-index: 111;
          margin: 80px 80px;
        }
        
      }
      img {
        width: 224px;
        height: 224px;
        cursor: pointer;
        transition: all 1s;
      }
      li img:hover{
        transform: scale(1.1);
      }
    }
    .brief {
      width: 224px;
      height: 26px;
      margin-top: 18px;
      font-size: 16px;
      height: 26px;
      line-height: 26px;
      overflow: hidden;
    }
  }
}
</style>
